package com.starbaba.utils;

public enum FinanceComparedDiff {
	FINANCE_COMPARED_DIFF_BLUEPAY_XLS("bluepayxls","1,3,7"),
	FINANCE_COMPARED_DIFF_BLUEPAY_TXT("bluepaytxt","3,5,9");
	
	private String payType;
	private String cols;
	
	
	public String getPayType() {
		return payType;
	}
	public void setPayType(String payType) {
		this.payType = payType;
	}
	public String getCols() {
		return cols;
	}
	public void setCols(String cols) {
		this.cols = cols;
	}
	private FinanceComparedDiff(String payType,String cols){
		this.payType = payType;
		this.cols = cols;
	}
	
	public static String getPayType(String cols){
		for(FinanceComparedDiff financeComparedDiff : FinanceComparedDiff.values()){
			if(cols.equals(financeComparedDiff.getCols())){
				return financeComparedDiff.payType;
			}
		}
		return null;
	}
	
	public static String getCols(String payType){
		for(FinanceComparedDiff financeComparedDiff : FinanceComparedDiff.values()){
			if(payType.equals(financeComparedDiff.getPayType())){
				return financeComparedDiff.cols;
				
			}
		}
		return null;
	}
}
